<template>
  <div>
    <Header />
    <div class="personalDatum clearFix">
      <div class="personalLeft">
        <div class="personalLeftContainer">
          <div class="baseInfo">
            <div class="logo"><img :src="userData.info.imgUrl" class="logoImg" v-if="userData.info"> </div>
            <p class="name">{{ myName }}</p>
            <div class="tags">
              <span class="span1"></span>
              <span class="span2"></span>
              <span class="span3"></span>
            </div>
            <div class="infoPercent">
              <div class="text clearFix">
                <span>资料完整度55%</span>
                <a href="#">预览资料</a>
              </div>
              <div class="percentBox">
                <div class="percent" style="width: 55%"></div>
              </div>
            </div>
          </div>
          <div class="nav">
            <div class="navItem active">个人资料</div>
            <div class="navItem">内心独白</div>
            <div class="navItem">兴趣爱好</div>
            <div class="navItem">择偶条件</div>
            <div class="navItem">我的认证</div>
          </div>
        </div>
      </div>
      <div class="personalRight">
        <div class="personalRightContainer">
          <div class="title">
            基本资料
            <a href="#">预览资料页</a>
          </div>
          <div class="content">
            <div class="infoTips">
              <h3>你的固定资料:</h3>
              <div id="initialValue">
                你是一位男士 | 1970-05-17 | 未婚 | 大专
              </div>
              <span @click="amend">我要修改</span>
            </div>
            <div id="editTips">
              <div class="close" @click="conceal"></div>
              <h4>修改途径</h4>
              <ul>
                <li>
                  1、性别/出生日期：
                  <span>前往APP认证身份证</span> ，系统自动更改；
                  <br />
                  <strong style="font-weight: bold">注：</strong
                  >已验证身份证会员无法修改。
                </li>
                <li>
                  2、婚姻状况：<span>前往APP编辑资料页</span>
                  上传婚姻证明，审核通过后即可修改。
                </li>
                <li>
                  3、身高：<span>前往APP编辑资料页</span>发送体检证明，审核通过后即可修改。
                </li>
                <li>
                  4、学历：<span>前往APP编辑资料页</span>发送体检证明，审核通过后即可修改。
                </li>
              </ul>
            </div>
            <div class="form" @mouseover="isflag">
              <div class="formItem">
                <div class="item clearFix">
                  <div class="label">昵称</div>
                  <div class="selectContainer">
                    <div class="select">
                      <input
                        @input="inputFn"
                        type="text"
                        autocomplete
                        maxlength="20"
                        placeholder="请输入你的昵称"
                        v-model="changeName"
                      />
                    </div>
                    <div class="needVerify">
                      此项需要审核，且一个月内只能修改5次，审核不通过也会消耗修改次数
                    </div>
                    <div class="verifyMistake" style="display: none">
                      昵称长度应为4-16位字符，只能由汉字、字母、数字、下划线组成
                    </div>
                  </div>
                </div>
              </div>
              <div class="formItem">
                <div class="item clearFix">
                  <div class="label">手机</div>
                  <div class="selectContainer">
                    <div class="select">
                      <input
                        type="text"
                        autocomplete
                        disabled="disabled"
                        maxlength="20"
                        :value="phone"
                      />
                    </div>
                    <div class="phoneChange">
                      让你可免费获得网站的征婚进展提醒短信
                      <span @click="phoneAlter">修改</span>
                    </div>
                  </div>
                </div>
              </div>
              <div class="formItem">
                <div class="item clearFix">
                  <div class="label">工作地区</div>
                  <div class="selectContainer">
                    <div class="region clearFix" @mouseleave="flag = false">
                      <div class="regionInput">
                        <input
                          data-id="1"
                          class="regionValue"
                          type="text"
                          placeholder="省/直辖市"
                          :value="provincial"
                          readonly="readonly"
                        />
                        <!-- <div class="regionValue">{{ provincial }}</div> -->
                        <div class="picker" v-if="flag === '1' ? true : false">
                          <div class="year">
                            <div
                              class="option"
                              style="width: 60px"
                              v-for="(item, index) in provincialList"
                              :key="index"
                              :data-index="index"
                              @click="onProvincial"
                            >
                              {{ item.name }}
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="regionInput">
                        <input
                          data-id="2"
                          class="regionValue"
                          type="text"
                          placeholder="市/区"
                          :value="cantonal"
                          readonly="readonly"
                        />
                        <!-- <div class="regionValue">{{ cantonal }}</div> -->
                        <div class="picker" v-if="flag === '2' ? true : false">
                          <div class="option" v-if="!cantonalList.length">
                            请先选择省/直辖市
                          </div>
                          <div
                            v-else
                            class="option"
                            v-for="(item, index) in cantonalList"
                            :key="index"
                            :data-index="index"
                            @click="onCantonal"
                          >
                            {{ item.name }}
                          </div>
                        </div>
                      </div>
                      <!--   -->
                      <div class="regionInput" v-if="flag1">
                        <input
                          data-id="3"
                          class="regionValue"
                          type="text"
                          placeholder="县/区"
                          :value="county"
                          readonly="readonly"
                        />
                        <!-- <div class="regionValue">{{ county }}</div> -->
                        <div class="picker" v-if="flag === '3' ? true : false">
                          <div class="option" v-if="!countyList.length">
                            请先选择省/直辖市，和市/区
                          </div>
                          <div
                            class="option"
                            v-for="(item, index) in countyList"
                            :key="index"
                            :data-index="index"
                            @click="onCounty"
                          >
                            {{ item.name }}
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="phoneChange">工作地一个月内只能修改一次</div>
                  </div>
                </div>
              </div>
              <div class="formItem">
                <div class="item clearFix">
                  <div class="label">月收入</div>
                  <div class="selectContainer">
                    <div class="select">
                      <div class="price" @mouseleave="flag = false">
                        <div class="priceBox" data-id="4">{{ price }}</div>
                        <div class="prices" v-if="flag === '4' ? true : false">
                          <div
                            class="options"
                            v-for="item in prices"
                            :key="item"
                            @click="selectPrice"
                          >
                            {{ item }}
                          </div>
                        </div>
                        <div class="arrow"></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="formItem">
                <div class="item clearFix">
                  <div class="label">身高</div>
                  <div class="selectContainer">
                    <div class="selectStature">
                      <div class="statureContainer" @mouseleave="flag = false">
                        <div class="box" data-id="5">{{ stature }}</div>
                        <div class="stature" v-if="flag === '5' ? true : false">
                          <div
                            class="options"
                            v-for="item in statures"
                            :key="item"
                            @click="selectStature"
                          >
                            {{ item }}
                          </div>
                        </div>
                        <div class="arrow"></div>
                      </div>
                      <div class="phoneChange">身高只能修改一次</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="save">
              <div class="btn-actions">
                <button
                  class="saveBtn btn"
                  @click="colorBtn"
                  @mousedown="colorDown"
                  @mouseup="colorUp"
                >
                  保存并继续
                </button>
                <button class="btn skipBtn">跳过</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="dialog" style="display: none">
      <div class="dialogBox">
        <div class="title">
          修改手机号码
          <span class="close" @click="closePhone"></span>
        </div>
        <div class="content">
          <div>
            <div class="phoneVerification">
              <div class="formItem clearfix">
                <div class="label">手机号</div>
                <input
                  style="display: inline-block; width: 270px"
                  type="text"
                  placeholder="请输入已验证手机号码"
                  maxlength="11"
                  autocomplete
                  @blur="blurFn"
                  v-model="isPhone"
                />
              </div>
              <div class="phoneVerify" style="display: none">
                手机号格式输入错误
              </div>
            </div>
            <div class="phoneVerification">
              <div class="formItem clearfix">
                <div class="label">验证码</div>
                <input
                  style="display: inline-block; width: 150px"
                  type="text"
                  placeholder="请输入校验码"
                  maxlength="11"
                  autocomplete
                  @blur="blurFn1"
                  v-model="isVerify"
                />
                <div class="ImgCode">
                  <img src="#" />
                  <span>看不清？换一张</span>
                </div>
              </div>
              <div class="ImgCodeVerify" style="display: none">
                请输入校验码
              </div>
            </div>
            <div class="nextBtn">
              <div class="ValidationError" style="display: none">
                验证码输入有误，请重试
              </div>
              <div class="ValidationError" style="display: none">
                当前手机号错误，请检查后重试
              </div>
              <button
                class="btn"
                @click="colorBtn1"
                @mousedown="colorDown"
                @mouseup="colorUp"
              >
                下一步
              </button>
            </div>
          </div>
        </div>
      </div>
    </div>
    <Footer v-if="!$route.meta.isHideFooter" />
  </div>
</template>

<script>
import { reqGetCityList } from "@/api/index";
export default {
  name: "Personal",
  data() {
    return {
      userData:{},
      nameVerify: /^[\da-zA-Z_\u4e00-\u9f5a]{4,16}$/,
      phoneVerify: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
      flag: false,
      flag1: true,
      pickerIndex: null,
      myName: "",
      changeName: "",
      phone: null,
      isPhone: null,
      isVerify: "",
      //provincial: "省/直辖市"
      provincial: "",
      provincialList: [],
      //市/区
      cantonal: "",
      cantonalList: [],
      //县区
      county: "",
      countyList: [],
      //身高
      stature: null,
      statures: [],
      //工资
      price: "",
      prices: [
        "3000元以下",
        "3000元~8000元",
        "8000元~15000元",
        "15000元~20000元",
        "20000元以上",
      ],
    };
  },
  methods: {
    //v-if 显示隐藏
    isflag(e) {
      //console.log(e.target.dataset.id);
      if (e.target.dataset.id === "1") {
        this.flag = "1";
      } else if (e.target.dataset.id === "2") {
        this.flag = "2";
      } else if (e.target.dataset.id === "3") {
        this.flag = "3";
      } else if (e.target.dataset.id === "4") {
        this.flag = "4";
      } else if (e.target.dataset.id === "5") {
        this.flag = "5";
      }
    },
    amend(e) {
      //获取点击元素的父元素的下一个元素
      //console.log(e.path[1].nextElementSibling);
      e.path[1].nextElementSibling.style = "display: block";
    },
    conceal(e) {
      //console.log(e.path[1])
      e.path[1].style = "display:none";
    },
    //修改手机号
    phoneAlter(e) {
      //console.log(e.path[9].nextElementSibling);
      //开启修改框
      e.path[9].nextElementSibling.style = "display:block";
    },
    closePhone(e) {
      console.log(e.path);
      e.path[3].style = "display:none";
    },
    //选择
    //地区 省/市
    onProvincial(e) {
      //console.log(e.path);
      //获取点击的index
      //console.log(e.target.dataset);
      // 获取省市下标
      let {pickerIndex}=this
      pickerIndex = e.target.dataset.index;
      //console.log(pickerIndex);
      //console.log(e.path[3].firstElementChild);
      this.provincial = e.target.innerHTML;
      this.cantonal = "";
      e.path[3].firstElementChild.style = "outline:none;";
      e.path[2].style = "display:none";
      if (pickerIndex < 4) {
        //获取市区数据
        this.cantonalList = this.provincialList[
          pickerIndex
        ].subLevelModelList[0].subLevelModelList.map((item) => {
          return item;
        });
        //console.log(this.cantonalList);
        //显示市区的二级菜单
        //隐藏县选择区框
        this.flag1 = false;
      } else {
        //清空县/区选择  清空县区数据
        this.county = "";
        this.countyList = [];
        this.flag1 = true;
        this.cantonalList = this.provincialList[
          pickerIndex
        ].subLevelModelList.map((item) => {
          return item;
        });
      }
      this.flag = "2";
      //console.log(e.path[3].nextElementSibling.lastElementChild);
    },
    // 市/区
    onCantonal(e) {
      //console.log(e.path);
      //获取点击的index
      //console.log(e.target.dataset);
      // 获取省市下标
      let cantonalIndex = e.target.dataset.index;
      console.log(cantonalIndex);
      console.log(this.cantonalList);
      this.cantonal = e.target.innerHTML;
      this.county = "";
      e.path[1].style = "display:none";
      //获取县区数据
      this.countyList = this.cantonalList[cantonalIndex].subLevelModelList.map(
        (item) => {
          return item;
        }
      );
      this.flag = "3";
    },
    //县/区
    onCounty(e) {
      console.log(e.path);
      //获取点击的index
      //console.log(e.target.dataset);
      this.county = e.target.innerHTML;
      e.path[1].style = "display:none";
    },
    //月收入
    selectPrice(e) {
      //console.log(e.target);
      //获取当前元素的父元素
      //console.log(e.path[1])
      this.price = e.target.innerHTML;
      e.path[1].style = "display: none";
    },
    //身高
    selectStature(e) {
      //console.log(e.target);
      this.stature = e.target.innerHTML;
      // 在 style 中添加样式
      e.path[1].style.display = "none";
    },
    //用户名称
    inputFn(e) {
      //console.log(e.path);
      let { nameVerify, changeName } = this;
      //判断 用户名
      if (!nameVerify.test(changeName)) {
        e.path[2].lastElementChild.style = "display:block";
        //display: none;
      } else {
        e.path[2].lastElementChild.style = "display:none";
      }
    },
    //手机号表单变化
    blurFn(e) {
      console.log(1);
      let { phoneVerify, isPhone } = this;
      if (!phoneVerify.test(isPhone) || !isPhone) {
        console.log(e.path);
        e.path[1].nextElementSibling.style = "display:block";
      } else {
        e.path[1].nextElementSibling.style = "display:none";
      }
    },
    //验证码表单变化
    blurFn1(e) {
      console.log(1);
      let { isVerify } = this;
      if (!isVerify) {
        e.path[1].nextElementSibling.style = "display:block";
      } else {
        e.path[1].nextElementSibling.style = "display:none";
      }
    },
    //按钮
    colorBtn(e) {
      let { provincial, cantonal, county, nameVerify, changeName } = this;
      if (!nameVerify.test(changeName)) {
        return;
      }
      if (this.pickerIndex > 4) {
        if (!provincial || !cantonal || !county) {
          alert("请设置工作地区");
          return;
        }
      } else {
        if (!provincial || !cantonal) {
          alert("请设置工作地区");
          return;
        }
      }
      this.myName = this.changeName;
      console.log("正确", e.target);
    },
    colorBtn1(e) {
      let { isPhone, phone, isVerify } = this;
      if (isPhone != phone) {
        console.log(e);
      } else if (!isVerify) {
        console.log(e);
      }
    },
    colorDown(e) {
      console.log(e.target);
      e.target.style =
        "background: linear-gradient(-38deg,rgba(133, 109, 241, 0.8), rgba(164, 104, 239, 0.9))";
    },
    colorUp(e) {
      console.log(e.target);
      e.target.style = "background: linear-gradient(-135deg, #856df1, #a468ef)";
    },
  },
  computed: {},
  async mounted() {
    this.userData=JSON.parse(window.localStorage.getItem("cookie"))
    console.log(this.userData);
    //获得用户名
    this.myName=this.userData.info.userName;
    //用户名称
    this.changeName = this.myName;
    //获得手机号
    this.phone=this.userData.info.phone
    //获得身高 
    this.stature=this.userData.info.tall
    //身高数据
    for (let i = 129; i <= 211; i++) {
      this.statures.push(i);
    }
    //获得收入
    this.price=this.userData.info.money
    //获得用户工作地区
    this.provincial=this.userData.info.from[0]
    this.cantonal=this.userData.info.from[1]
    this.county=this.userData.info.from[2]
    //请求城市数据
    const api = await reqGetCityList();
    
    /* console.log(
      api.data.map((item, index) => {
        return item.name + index;
      })
    ); */
    this.provincialList = api.data;
  },
};
</script>

<style lend="stylus">
.personalDatum {
  width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
}
.personalDatum .personalLeft {
  width: 250px;
  float: left;
}
.personalDatum .personalLeftContainer {
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #ebebeb;
  padding-top: 27px;
}
.personalDatum .baseInfo {
  text-align: center;
  padding-bottom: 48px;
  height: 235px;
}
.personalDatum .baseInfo .logo {
  /* background-image: url("../../assets/images/touXiang.png"); */
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
}
.logoImg{
  width:100%
}

.personalDatum .name {
  margin-top: 14px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  height: 25px;
  line-height: 25px;
}
.personalDatum .tags {
  margin-top: 8px;
}
.personalDatum .tags span {
  display: inline-block;
  margin-left: 5px;
  /* background: 0 0 no-repeat; */
  background-size: 100% 100%;
  width: 20px;
  height: 20px;
}
.tags .span1 {
  background-image: url(../../assets/images/crown.png);
}
.tags .span2 {
  background-image: url(../../assets/images/star.png);
}
.tags .span3 {
  background-image: url(../../assets/images/proof.png);
}
.personalDatum .text span {
  float: left;
}
.personalDatum .personalLeft a {
  float: right;
  color: #8b76f9;
}
.personalDatum .infoPercent {
  display: inline-block;
  margin-top: 34px;
  width: 190px;
  color: #666;
  font-size: 13px;
  line-height: 18px;
}
.personalDatum .percentBox {
  position: relative;
  height: 8px;
  margin-top: 4px;
  background-color: #d8d8d8;
  border-radius: 4px;
  overflow: hidden;
}
.personalDatum .percent {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #a187f9;
  border-radius: 4px;
  overflow: hidden;
}
.personalDatum .navItem {
  display: block;
  position: relative;
  padding: 0 45px 0 54px;
  height: 42px;
  line-height: 42px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  user-select: none;
}
.personalDatum .active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -12px;
  width: 3px;
  height: 25px;
  background-color: #8b76f9;
}
.personalDatum .active:after {
  content: "";
  position: absolute;
  right: 45px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: 1px solid #898989;
  border-left-width: 0;
  border-bottom-width: 0;
  transform: rotate(45deg);
}
.personalDatum .personalRight {
  width: 920px;
  float: right;
}
.personalDatum .personalRightContainer {
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #ebebeb;
}
.personalDatum .title {
  height: 57px;
  line-height: 56px;
  padding: 0 30px 0 42px;
  border-bottom: 1px solid #efefef;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.personalDatum .title:before {
  content: "";
  position: absolute;
  left: 30px;
  top: 20px;
  width: 4px;
  height: 16px;
  background: #8b76f9;
}
.personalDatum .personalRight a {
  font-size: 14px;
  color: #8b76f9;
  font-weight: normal;
  float: right;
}
.personalDatum .content {
  padding: 40px 42px 60px;
}
.personalDatum .infoTips {
  width: 544px;
  height: 86px;
  color: #666666;
  background: #f2f3f5;
  border-radius: 6px;
  padding-left: 20px;
  padding-top: 20px;
  font-size: 15px;
}
.personalDatum .infoTips h3 {
  margin-bottom: 15px;
  font-weight: normal;
}
.personalDatum .infoTips span {
  float: right;
  margin-right: 20px;
  color: #8b76f9;
  cursor: pointer;
}
.personalDatum #editTips {
  display: none;
  position: absolute;
  top: 175px;
  right: 80px;
  width: 430px;
  padding: 15px 20px 10px;
  background-color: #f9fbff;
  border: 1px solid #e6ebf5;
  border-radius: 6px;
  font-size: 12px;
  z-index: 999;
  line-height: 23px;
  color: #5e5e5e;
  box-sizing: border-box;
}
.personalDatum #editTips .close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background: url(../../assets/images/close.png);
}
.personalDatum #editTips h4 {
  margin-bottom: 8px;
  color: #0861a2;
  font-size: 14px;
}
.personalDatum #editTips ul li {
  list-style: none;
}
.personalDatum #editTips ul li span {
  color: #0097d3;
}
.personalDatum .form .formItem {
  padding-left: 10px;
  margin-top: 15px;
}
.personalDatum .form .formItem .label {
  float: left;
  width: 124px;
  line-height: 40px;
  font-size: 16px;
  font-weight: 400;
  color: #666666;
}
.personalDatum .form .formItem .selectContainer {
  position: relative;
  float: left;
}
/* .personalDatum .selectContainer .regionInput:hover .picker {
  display: block;
} */

.personalDatum .form .formItem .select {
  position: relative;
  display: inline-block;
  width: 270px;
  height: 40px;
  line-height: 40px;
}
.personalDatum .form .formItem .select input,
.dialog .content input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px 20px;
  background-color: #f4f4f4;
  border-radius: 4px;
  border-width: 0;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
}
.personalDatum .form .formItem .selectContainer .needVerify {
  font-size: 12px;
  color: #666;
  line-height: 17px;
}
.personalDatum .form .formItem .selectContainer .verifyMistake {
  position: absolute;
  top: 10px;
  left: 280px;
  font-size: 12px;
  width: 100%;
  color: #fe4a3a;
  text-align: left;
  line-height: 24px;
  white-space: nowrap;
}
.personalDatum .form .formItem .selectContainer .phoneChange {
  font-size: 11px;
  color: #666666;
  margin-top: 4px;
}
.personalDatum .form .formItem .selectContainer .phoneChange span {
  color: #4a90e2;
  text-decoration: underline;
  cursor: pointer;
}
.personalDatum .form .formItem .selectContainer .regionInput:nth-child(1) {
  margin-left: 0;
}
.personalDatum
  .form
  .formItem
  .selectContainer
  .regionInput:nth-child(1)
  .regionValue {
  padding: 0 8px;
}
.personalDatum .form .formItem .selectContainer .regionInput {
  float: left;
  margin-left: 10px;
}
.personalDatum .selectContainer .regionInput .regionValue {
  display: inline-block;
  width: 100px;
  height: 40px;
  line-height: 40px;
  padding: 0 8px 0 2px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  color: #333333;
  background-color: #f4f4f4;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
}
.personalDatum .picker {
  /* display: none; */
  width: 378px;
  min-height: 222px;
  font-size: 16px;
  position: absolute;
  left: 0;
  margin-top: -4px;
  z-index: 10;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 2px 8px 0px rgb(163 163 163 / 30%);
}
.personalDatum .selectContainer .regionInput .picker .option {
  display: inline-block;
  white-space: nowrap;
  margin-bottom: 10px;
  margin-right: 5px;
  padding: 4px;
  color: #333333;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}
/* */
.personalDatum .selectContainer .price {
  height: 40px;
  display: inline-block;
  position: relative;
}
.personalDatum .selectContainer .price .priceBox {
  display: inline-block;
  width: 200px;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background-color: #f4f4f4;
  font-size: 14px;
  color: #333333;
  line-height: 40px;
  cursor: pointer;
  box-sizing: border-box;
}
.personalDatum .selectContainer .price .prices {
  /* display: none; */
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 101%;
  margin-top: -4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 2px 8px 0px rgb(163 163 163 / 30%);
  max-height: 280px;
  overflow-y: scroll;
  z-index: 999;
}
/* .personalDatum .selectContainer:hover .prices{
  display: block;
}  */
.personalDatum .selectContainer .arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -3px;
  border: 6px solid #999;
  border-color: #999 transparent transparent transparent;
}
.personalDatum .selectContainer .statureContainer {
  display: inline-block;
  position: relative;
}
.personalDatum .selectContainer .statureContainer .box {
  display: inline-block;
  width: 100px;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background-color: #f4f4f4;
  font-size: 14px;
  color: #333333;
  line-height: 40px;
  cursor: pointer;
}
.personalDatum .selectContainer .statureContainer .stature {
  /* display: none; */
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 101%;
  margin-top: -4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 2px 8px 0px rgb(163 163 163 / 30%);
  max-height: 280px;
  overflow-y: scroll;
  z-index: 999;
}
.personalDatum .selectContainer .options {
  height: 40px;
  line-height: 40px;
  color: #333333;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
  font-size: 16px;
}
input::-webkit-input-placeholder {
  color: #ababab;
}
input {
  border: 0;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.personalDatum .personalRight .save {
  text-align: center;
  margin-top: 60px;
}
.personalDatum .personalRight .skipBtn.btn {
  background-color: rgb(255, 255, 255);
  color: rgb(153, 153, 153);
  border: 1px solid rgb(177, 177, 177);
  background: transparent;
  filter: none;
}
.personalDatum .personalRight .saveBtn.btn {
  width: 130px;
  margin-right: 10px;
}
/* .personalDatum .selectContainer .selectStature:hover .stature {
  display: block;
} */
.dialog {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.1s ease-out;
}
.dialog .dialogBox {
  position: relative;
  width: 480px;
  margin: 15vh auto 50px;
  transform: scale(1);
  background-color: rgb(255, 255, 255);
  transition: transform 0.1s ease-out;
}
.dialog .dialogBox .title {
  position: relative;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 14px;
  color: #999;
  background-color: #f3f3f3;
}
.dialog .dialogBox .title .close {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 16px;
  height: 16px;
  background-image: url(../../assets/images/close.png);
  cursor: pointer;
}
.dialog .dialogBox .content {
  padding: 26px 40px 40px;
  box-sizing: border-box;
}
.dialog .dialogBox .formItem {
  line-height: 40px;
  margin-top: 15px;
}
.dialog .dialogBox .formItem .label {
  float: left;
  font-size: 16px;
  margin-right: 10px;
}
.dialog .dialogBox .formItem .ImgCode {
  display: inline-block;
  line-height: 37px;
  vertical-align: top;
  margin-left: 5px;
}
.dialog .dialogBox .formItem .ImgCode img {
  margin: 0 5px;
  vertical-align: bottom;
  max-width: 100%;
  width: 79px;
  height: 37px;
  cursor: pointer;
}
.dialog .dialogBox .formItem .ImgCode span {
  font-size: 12px;
  color: #4a90e2;
  cursor: pointer;
  text-decoration: underline;
}
.dialog .dialogBox .ImgCodeVerify,
.dialog .dialogBox .phoneVerify {
  font-size: 12px;
  width: 100%;
  color: #fe4a3a;
  text-align: left;
  line-height: 24px;
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 10px;
  padding-left: 60px;
}
.dialog .dialogBox .nextBtn {
  text-align: center;
  margin-top: 20px;
}
.dialog .dialogBox .nextBtn .ValidationError {
  width: 100%;
  font-size: 12px;
  margin-bottom: 5px;
  vertical-align: baseline;
  text-align: center;
  white-space: nowrap;
  line-height: 24px;
  color: #fe4a3a;
}
.dialog .dialogBox .nextBtn .btn,
.personalDatum .personalRight .saveBtn,
.personalDatum .personalRight .skipBtn {
  width: 94px;
  margin: 0px auto;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 0 20px;
  user-select: none;
  cursor: pointer;
  background: linear-gradient(-135deg, #856df1, #a468ef);
  border: 0;
  outline: none;
}
</style>